.category-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  border-bottom: 1px solid #eaeaea;
}

.category-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: visible; /* 使用外层页面滚动容器，避免双滚动 */
  padding: 0 40px 0 8px; /* 为右侧 Anchor 预留空间 */
}

.section { margin-bottom: 12px; }

/* Anchor 标题样式 */
.anchor-header {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-9);
  background: var(--white);
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-3);
}

/* 右侧 Anchor 导航 */
.anchor-sidebar {
  position: fixed;
  right: 10px;
  top: 48px;
  height: calc(100vh - var(--tabbar-h, 0px) - 48px);
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 2px;
  z-index: 10;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  &::-webkit-scrollbar{display:none}
}

.anchor-item {
  font-size: 12px; /* 缩小字号以适配更短高度 */
  color: #999;
  line-height: 16px;
  cursor: pointer;
  user-select: none;
}
.anchor-item:hover { color: #666; }
.anchor-item.active {
  color: #fff;
  font-weight: 600;
  background: var(--rt-primary-color, #1677ff);
  border-radius: 8px;
  width: 20px;
  text-align: center;
}

.item {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 2px;
  cursor: pointer;

  &:hover{
    background-color: var(--gray-1);
  }
}

.item-icon {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  overflow: hidden;
  background: #f5f5f5;
}
.item-icon img { width: 100%; height: 100%; object-fit: cover; }

.item-name {
  font-size: 14px;
}

:global #page > div[class^="_category-wrap"] {
  margin: 48px auto;
}
